<?php
error_reporting(0);
session_start();
include_once '../comm/config.php';
include_once '../comm/checkpostandget.php';
include_once 'check.php';
include_once '../comm/wjt.php';

$id=$_GET['msg_id']; 
if($id!=''){
	$sqlold="update ".$BIAOTOU."msg set see=1 where Id='".$id."' and ddusername='".$_SESSION["duoduouser"]."'";
	mysql_query($sqlold);
		
	$q = "SELECT * from ".$BIAOTOU."msg where Id='".$id."' and ddusername='".$_SESSION["duoduouser"]."'";
	$rs = mysql_query($q);
	while ($row = mysql_fetch_array($rs))
	{
		$senduser=$row['senduser'];
		$content=$row['content'];
		$addtime=$row['addtime'];
	}
	mysql_close();
$tag="center";
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>用户短消息 - 用户中心</title>
<link href="../css/usercss.css" rel="stylesheet" type="text/css">
<link href="../template/<?=MOBAN?>/css/common.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="../js/jquery.js"></script>
</head>

<body id="msglist">
<?php
include("../template/".MOBAN."/header.tpl.php");
?>
<?php
include("../template/".MOBAN."/nav.tpl.php");
?>
<div id="main" >
<?php
include("left.php");
?>
<div class="contain" style="height:400px">
  <h2 class="left_nav4">我的站内消息</h2>
    <div class="order">
      <div class="title">
          <ul>
            <li><a style="MARGIN-LEFT: 10px" class="current" href="msg_list.php?act=in">收到的消息</a></li>
  			<li><a style="MARGIN-LEFT: 10px" href="msg_list.php?act=out">发出的消息</a></li>
  			<li><a style="MARGIN-LEFT: 10px" href="msg_list.php?act=send">发送消息</a></li>
          </ul>
      </div>
    <div class="content" style="font-size:12px; height:200px;">
      <ul>
		  <LI style="LINE-HEIGHT: 40px; HEIGHT: 40px; CLEAR: both;width:600px; border-bottom:0px;"><LABEL>发件人：</LABEL><INPUT id="ddusername" size="60" type=text name="ddusername" style="width:400px;BORDER-BOTTOM: #c9c9c9 1px solid; BORDER-LEFT: #c9c9c9 1px solid; LINE-HEIGHT: 26px; HEIGHT: 26px; FONT-SIZE: 12px; BORDER-TOP: #c9c9c9 1px solid; BORDER-RIGHT: #c9c9c9 1px solid" value="<?=$senduser?>" readonly="true"></LI>
		  <LI style="LINE-HEIGHT: 40px; HEIGHT: 170px; CLEAR: both; width:700px; border-bottom:0px;"><LABEL>内　容：</LABEL><TEXTAREA style=" HEIGHT: 160px; width:500px; BORDER-BOTTOM: #c9c9c9 1px solid; BORDER-LEFT: #c9c9c9 1px solid; LINE-HEIGHT: 26px; FONT-SIZE: 12px; BORDER-TOP: #c9c9c9 1px solid; BORDER-RIGHT: #c9c9c9 1px solid" rows=10 cols=50 name="content" id="content" readonly="readonly"><?=$content?></TEXTAREA></LI>
		  <LI style="LINE-HEIGHT: 40px; HEIGHT: 40px; width:300px; CLEAR: both; border-bottom:0px;"><LABEL></LABEL><INPUT style="BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; FONT-SIZE: 12px; BORDER-TOP: 0px; BORDER-RIGHT: 0px; margin-left:50px;" class=smtgray value=返回上页 type="button" onclick="history.go(-1)"> <INPUT style="BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; FONT-SIZE: 12px; BORDER-TOP: 0px; BORDER-RIGHT: 0px; margin-left:20px;" class=smtgray value=立即回复 type="button" onclick="window.location='msg_list.php?act=send&senduser=<?=urlencode($senduser)?>';"> 
		  </LI>
		</ul>
	</div>
	</div>
</div>
</div>
<?php
include("../template/".MOBAN."/footer.tpl.php");
?>
</body>
</html>